package com.bosto.jiramanager.helper;

import com.bosto.jiramanager.entity.Contants;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class SqlHelper extends SQLiteOpenHelper {
	//private String createSQL;
	private String updateSQL;
	public SqlHelper(Context context, String name, CursorFactory factory,
			int version,String createSQL) {
		super(context, name, factory, version);

	}
	public SqlHelper(Context context, String name, CursorFactory factory,
			int version) {
		super(context, name, factory, version);

	}
	
	public void CreateTable(){
		SQLiteDatabase db=this.getReadableDatabase();
		onCreate(db);
		db.close();

	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL(Contants.CREATEDBSQLSTATEMENT);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
	}
	

	
}
